package com.heima.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heima.entity.TbNode;
import com.heima.entity.TbRegion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 运营区域 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-06-08
 */
public interface TbRegionMapper extends BaseMapper<TbRegion> {


    @Select("select * from tb_node where region_id like concat(#{regId}),'%'")
    Page<List<TbNode>>  selectNodeById(String regId);
}
